package ui;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Label;

public class Login {
	private Text text;
	private Text text_1;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Login window = new Login();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		Shell shlWebBiReport = new Shell();
		shlWebBiReport.setSize(450, 300);
		shlWebBiReport.setText("Web BI Report");
		
		text = new Text(shlWebBiReport, SWT.BORDER);
		text.setBounds(121, 60, 98, 21);
		
		text_1 = new Text(shlWebBiReport, SWT.BORDER);
		text_1.setBounds(121, 100, 98, 21);
		
		Label lblNewLabel = new Label(shlWebBiReport, SWT.NONE);
		lblNewLabel.setBounds(43, 66, 55, 15);
		lblNewLabel.setText("User name");
		
		Label lblNewLabel_1 = new Label(shlWebBiReport, SWT.NONE);
		lblNewLabel_1.setBounds(43, 103, 55, 15);
		lblNewLabel_1.setText("Password");

		shlWebBiReport.open();
		shlWebBiReport.layout();
		while (!shlWebBiReport.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}
}
